Skip to content

General: Add filter to WP_Posts_List_Table::get_table_classes(). Adds…#11487

Open
NikhilMaheshwariMiniOrange wants to merge 2 commits intoWordPress:trunkfrom
NikhilMaheshwariMiniOrange:fix/58824-filter-post-list-table-classes
Open

General: Add filter to WP_Posts_List_Table::get_table_classes(). Adds…#11487
NikhilMaheshwariMiniOrange wants to merge 2 commits intoWordPress:trunkfrom
NikhilMaheshwariMiniOrange:fix/58824-filter-post-list-table-classes

Conversation

@NikhilMaheshwariMiniOrange
Copy link
Copy Markdown

Adds a post_list_table_classes filter to WP_Posts_List_Table::get_table_classes() so developers can modify the CSS classes applied to the posts list table in the admin.

Currently the classes are hardcoded with no way to customize them. This filter allows developers to add, remove, or modify classes — for example, adding post-type-specific classes.

Trac ticket: https://core.trac.wordpress.org/ticket/58824

image

… a post_list_table_classes filter to allow developers to modify the CSS classes applied to the posts list table in admin. Fixes #58824.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props bruheshwarinikhil.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant